package string;

/**
 * @author 十八岁讨厌编程
 * @date 2025/6/27 21:18
 * @PROJECT_NAME leetcode
 * @description
 */

public class Solution344 {
    public void reverseString(char[] s) {
        int head = 0;
        int end = s.length - 1;
        while (head < end) {
            char temp = s[head];
            s[head++] = s[end];
            s[end--] = temp;
        }
    }

}
